package com.example.springboot_dll;

import com.sun.jna.Library;
import com.sun.jna.Native;

/**
 * @author jie
 * @date 2021/4/30 -15:27
 */
public interface RtcPubLibrary extends Library {
    // 解决dll路径乱码
    String filePath = RtcPubLibrary.class.getResource("").getPath().replaceFirst("/", "").replaceAll("%20", " ") + "Chkin";
    // JNA调用dll
    RtcPubLibrary instance = (RtcPubLibrary) Native.loadLibrary("C:\\Windows\\System32\\user32.dll", RtcPubLibrary.class);

    void MessageBoxA(long hWnd, String lpText, String lpCaption, int uType);

}